package com.bjpowernode.crm.settings.service.impl;

import com.bjpowernode.crm.settings.domain.User;
import com.bjpowernode.crm.settings.mapper.UserMapper;
import com.bjpowernode.crm.settings.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryUserByLoginActAndPd(String loginAct, String loginPwd) {
        return userMapper.selectUserByLoginActAndPwd(loginAct,loginPwd);
    }

    @Override
    public int queryAccountByLoginAct(String loginAct) {
        return userMapper.selectAccountByLoginAct(loginAct);
    }

    @Override
    public List<User> queryAllUserList() {
        return userMapper.selectAllUserList();
    }
}
